package com.xtkj.superclub_entity.entity.activity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain=true)
@ToString
@TableName("z_activity_album")
public class ActivityAlbum implements Serializable {

    /*
        活动相册，包含俱乐部活动相册和私人活动
        如果是俱乐部活动就会在z_team_album中有数据，没有的话就代表是私人活动
    */
    @TableId(value = "activity_album_id",type = IdType.INPUT)
    private String activityAlbumId;//活动相册id
    @TableId(value = "activity_photo_id",type = IdType.INPUT)
    private String activityPhotoId;//相册里面的照片的id
    private String activityId;//活动id
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;//创建时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;//修改时间

    public ActivityAlbum(String activityAlbumId, String activityPhotoId, String activityId, Date createTime) {
        this.activityAlbumId = activityAlbumId;
        this.activityPhotoId = activityPhotoId;
        this.activityId = activityId;
        this.createTime = createTime;
    }
}
